<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3" id="name_label"><span style="color: red;">*</span>项目名称:</label>
        <div class="col-xs-12 col-sm-4">
            <input  class="form-control form_value" type="text" value="{$row.name}" readonly >
        </div>
        <div class="col-xs-12 col-sm-4">
            <input id="name" class="form-control form_value" name="row[name]" type="text" value="{$row.tmp_name}" >
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3" id="name_label"><span style="color: red;">*</span>总投资(亿元):</label>
        <div class="col-xs-12 col-sm-4">
            <input class="form-control form_value"  type="text" value="{$row.investment_total}" readonly>
        </div>
        <div class="col-xs-12 col-sm-4">
            <input id="investment_total" class="form-control form_value" name="row[investment_total]" type="text" value="{$row.tmp_investment_total}" >
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3"><span style="color: red;">*</span>签订框架协议时间:<br/>(框架/正式至少填一项)</label>
        <div class="col-xs-12 col-sm-4">
            <input class="form-control  "  data-date-format="YYYY-MM-DD" type="text" value="{:$row.framework_agreement_time>0?$row.framework_agreement_time_text:($row.framework_agreement_time==-100?'待定':'')}" readonly>
        </div>
        <div class="col-xs-12 col-sm-4">
             <div class="input-group">
                <input class="form-control datetimepicker agreement" id="framework_agreement_time" name="row[framework_agreement_time]" data-date-format="YYYY-MM-DD" type="text"   {if $row.tmp_framework_agreement_time_text>0}  value="{$row.tmp_framework_agreement_time_text|htmlentities}" {/if}>
                <span class="input-group-addon">
                    <input type="checkbox" class="clear"  name="relation[framework_agreement_time]" value="1">清空
                </span>
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3"><span style="color: red;">*</span>签订正式投资协议时间:<br/>(框架/正式至少填一项)</label>
        <div class="col-xs-12 col-sm-4">
            <input class="form-control"  data-date-format="YYYY-MM-DD" type="text" value=" {:$row.invesment_agreement_time>0?$row.invesment_agreement_time_text:($row.invesment_agreement_time==-100?'待定':'')}" readonly>
        </div>
        <div class="col-xs-12 col-sm-4">
            <div class="input-group">
                <input class="form-control datetimepicker agreement" id="invesment_agreement_time" name="row[invesment_agreement_time]" data-date-format="YYYY-MM-DD" type="text"  {if $row.tmp_invesment_agreement_time>0} value="{$row.tmp_invesment_agreement_time_text|htmlentities}" {/if} >
                <span class="input-group-addon">
                    <input type="checkbox" class="clear"  name="relation[invesment_agreement_time]" value="1">清空
                </span>
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3"><span style="color: red;">*</span>项目来源:</label>
        <div class="col-xs-12 col-sm-4">
            <select class="form-control" name="row[project_source_ids]" title="请选择" data-rule="required" disabled="">
                <option value="">请选择</option>
                {volist name="activity_list" id="v" }
                    <option value="{$v.id}" {if $row.project_source_ids==$v.id} selected {/if}>{$v.name}</option>
                {/volist}
            </select>
        </div>
        <div class="col-xs-12 col-sm-4">
            <select class="form-control" name="row[project_source_ids]" title="请选择">
                <option value="">请选择</option>
                {volist name="activity_list" id="v" }
                    <option value="{$v.id}" {if $row.tmp_project_source_ids==$v.id} selected {/if}>{$v.name}</option>
                {/volist}
            </select>
        </div>

    </div>

    {if $isSuperAdmin}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3"><span style="color: red;">*</span>落户街道:</label>
        <div class="col-xs-12 col-sm-4">
            <select class="form-control" name="row[settle_street_ids]" title="请选择" data-rule="required">
                <option value="">请选择</option>
                {volist name="chargedep_list" id="vv" }
                    <option value="{$vv.id}" {if $row.settle_street_ids==$vv.id} selected {/if}>{$vv.name}</option>
                {/volist}
            </select>
        </div>
    </div>
    {/if}

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-3"></label>
        <div class="col-xs-12 col-sm-5">
            <!-- <button type="button" class="btn btn-success btn-embossed ">{:__('提交')}</button> -->
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
